object FrmNotaFiscal: TFrmNotaFiscal
  Left = 412
  Top = 159
  Width = 695
  Height = 534
  Caption = 'Dados Adicionais da Nota Fiscal'
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'MS Sans Serif'
  Font.Style = []
  OldCreateOrder = False
  Position = poMainFormCenter
  OnClose = FormClose
  OnKeyPress = FormKeyPress
  OnShow = FormShow
  PixelsPerInch = 96
  TextHeight = 13
  object pnl_principal: TPanel
    Left = 0
    Top = 65
    Width = 679
    Height = 380
    Align = alClient
    TabOrder = 0
    object gbx_calculo: TGroupBox
      Left = 1
      Top = 1
      Width = 677
      Height = 75
      Align = alTop
      Caption = 'C'#225'lculo do Imposto'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = [fsBold]
      ParentFont = False
      TabOrder = 0
      object Label1: TLabel
        Left = 8
        Top = 21
        Width = 66
        Height = 13
        Caption = 'Valor do Frete'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
      end
      object Label2: TLabel
        Left = 120
        Top = 21
        Width = 76
        Height = 13
        Caption = 'Valor do Seguro'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
      end
      object Label3: TLabel
        Left = 232
        Top = 21
        Width = 135
        Height = 13
        Caption = 'Outras Despesas Acess'#243'rias'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
      end
      object Label4: TLabel
        Left = 384
        Top = 21
        Width = 82
        Height = 13
        Caption = 'Valor Total do IPI'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
      end
      object Label20: TLabel
        Left = 496
        Top = 21
        Width = 86
        Height = 13
        Caption = 'Percentual do ISS'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
      end
      object edtValorFrete: TEdit
        Left = 8
        Top = 37
        Width = 89
        Height = 21
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
        TabOrder = 0
        Text = '0,00'
        OnExit = SaidaComponenteExit
      end
      object EdtValorSeguro: TEdit
        Left = 120
        Top = 37
        Width = 89
        Height = 21
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
        TabOrder = 1
        Text = '0,00'
        OnExit = SaidaComponenteExit
      end
      object EdtDespesaAcessorias: TEdit
        Left = 232
        Top = 37
        Width = 89
        Height = 21
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
        TabOrder = 2
        Text = '0,00'
        OnExit = SaidaComponenteExit
      end
      object EdtIPI: TEdit
        Left = 384
        Top = 37
        Width = 89
        Height = 21
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
        TabOrder = 3
        Text = '0,00'
        OnExit = SaidaComponenteExit
      end
      object edtISS: TEdit
        Left = 496
        Top = 37
        Width = 89
        Height = 21
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
        TabOrder = 4
        Text = '0,00'
        OnExit = SaidaComponenteExit
      end
    end
    object gbx_transportadora: TGroupBox
      Left = 1
      Top = 76
      Width = 677
      Height = 199
      Align = alClient
      Caption = 'Transportador'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = [fsBold]
      ParentFont = False
      TabOrder = 1
      DesignSize = (
        677
        199)
      object Label5: TLabel
        Left = 8
        Top = 16
        Width = 147
        Height = 13
        Caption = 'Raz'#227'o Social do Transportador'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
      end
      object Label7: TLabel
        Left = 8
        Top = 56
        Width = 82
        Height = 13
        Caption = 'Placa do Ve'#237'culo'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
      end
      object Label8: TLabel
        Left = 136
        Top = 56
        Width = 14
        Height = 13
        Caption = 'UF'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
      end
      object Label9: TLabel
        Left = 176
        Top = 56
        Width = 82
        Height = 13
        Caption = 'CNPJ /MF  - CPF'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
      end
      object Label10: TLabel
        Left = 8
        Top = 104
        Width = 46
        Height = 13
        Caption = 'Endere'#231'o'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
      end
      object Label11: TLabel
        Left = 336
        Top = 104
        Width = 47
        Height = 13
        Caption = 'Munic'#237'pio'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
      end
      object Label12: TLabel
        Left = 464
        Top = 104
        Width = 14
        Height = 13
        Caption = 'UF'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
      end
      object Label13: TLabel
        Left = 504
        Top = 104
        Width = 87
        Height = 13
        Caption = 'Inscri'#231#227'o Estadual'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
      end
      object Label14: TLabel
        Left = 8
        Top = 152
        Width = 55
        Height = 13
        Caption = 'Quantidade'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
      end
      object Label15: TLabel
        Left = 96
        Top = 152
        Width = 38
        Height = 13
        Caption = 'Esp'#233'cie'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
      end
      object Label16: TLabel
        Left = 224
        Top = 152
        Width = 30
        Height = 13
        Caption = 'Marca'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
      end
      object Label17: TLabel
        Left = 352
        Top = 152
        Width = 37
        Height = 13
        Caption = 'N'#250'mero'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
      end
      object Label18: TLabel
        Left = 568
        Top = 152
        Width = 63
        Height = 13
        Caption = 'Peso L'#237'quido'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
      end
      object Label19: TLabel
        Left = 456
        Top = 152
        Width = 52
        Height = 13
        Caption = 'Peso Bruto'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
      end
      object EdtTransportadoraDescricao: TEdit
        Left = 88
        Top = 32
        Width = 289
        Height = 21
        TabStop = False
        Color = clBtnFace
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
        ReadOnly = True
        TabOrder = 1
      end
      object EdtPlacaVeiculo: TEdit
        Left = 8
        Top = 72
        Width = 121
        Height = 21
        CharCase = ecUpperCase
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        MaxLength = 7
        ParentFont = False
        TabOrder = 4
      end
      object EdtUFPlaca: TEdit
        Left = 136
        Top = 72
        Width = 33
        Height = 21
        CharCase = ecUpperCase
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        MaxLength = 2
        ParentFont = False
        TabOrder = 5
      end
      object edtEndereco: TEdit
        Left = 8
        Top = 120
        Width = 321
        Height = 21
        TabStop = False
        Color = clBtnFace
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
        ReadOnly = True
        TabOrder = 7
      end
      object EdtMunicipio: TEdit
        Left = 336
        Top = 120
        Width = 121
        Height = 21
        TabStop = False
        Color = clBtnFace
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
        ReadOnly = True
        TabOrder = 8
      end
      object EdtUF: TEdit
        Left = 464
        Top = 120
        Width = 33
        Height = 21
        TabStop = False
        Color = clBtnFace
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
        ReadOnly = True
        TabOrder = 9
      end
      object EdtPesoLiquido: TEdit
        Left = 568
        Top = 168
        Width = 108
        Height = 21
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        MaxLength = 15
        ParentFont = False
        TabOrder = 16
      end
      object EdtCnpj: TEdit
        Left = 176
        Top = 72
        Width = 201
        Height = 21
        TabStop = False
        Color = clBtnFace
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
        ReadOnly = True
        TabOrder = 6
      end
      object EdtQuantidade: TEdit
        Left = 8
        Top = 168
        Width = 81
        Height = 21
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        MaxLength = 15
        ParentFont = False
        TabOrder = 11
      end
      object EdtEspecie: TEdit
        Left = 96
        Top = 168
        Width = 121
        Height = 21
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        MaxLength = 30
        ParentFont = False
        TabOrder = 12
      end
      object EdtMarca: TEdit
        Left = 224
        Top = 168
        Width = 121
        Height = 21
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        MaxLength = 30
        ParentFont = False
        TabOrder = 13
      end
      object EdtNumero: TEdit
        Left = 352
        Top = 168
        Width = 97
        Height = 21
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        MaxLength = 15
        ParentFont = False
        TabOrder = 14
      end
      object EdtPesoBruto: TEdit
        Left = 456
        Top = 168
        Width = 108
        Height = 21
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        MaxLength = 15
        ParentFont = False
        TabOrder = 15
      end
      object EdtInscEstadual: TEdit
        Left = 504
        Top = 120
        Width = 177
        Height = 21
        TabStop = False
        Color = clBtnFace
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
        ReadOnly = True
        TabOrder = 10
      end
      object rdg_frete: TRadioGroup
        Left = 383
        Top = 10
        Width = 298
        Height = 84
        Anchors = [akLeft, akTop, akRight]
        Caption = 'Tipo de Frete:'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ItemIndex = 0
        Items.Strings = (
          'Frete por conta do Emitente'
          'Frete por conta do Destinat'#225'rio')
        ParentFont = False
        TabOrder = 3
      end
      object EdtTransportadora: TEdit
        Tag = 104
        Left = 8
        Top = 32
        Width = 57
        Height = 21
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
        TabOrder = 0
        Text = '0'
        OnExit = EdtTransportadoraExit
      end
      object btnTransportadora: TButton
        Left = 64
        Top = 32
        Width = 21
        Height = 21
        Caption = '...'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
        TabOrder = 2
        TabStop = False
        OnClick = btnTransportadoraClick
      end
    end
    object gbx_adicionais: TGroupBox
      Left = 1
      Top = 275
      Width = 677
      Height = 104
      Align = alBottom
      Caption = 'Dados Adicionais'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = [fsBold]
      ParentFont = False
      TabOrder = 2
      object mmObservacoes: TMemo
        Left = 8
        Top = 16
        Width = 345
        Height = 81
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = []
        ParentFont = False
        TabOrder = 0
      end
    end
  end
  object pnl_saida: TPanel
    Left = 0
    Top = 445
    Width = 679
    Height = 51
    Align = alBottom
    TabOrder = 1
    object btnImprimir: TBitBtn
      Left = 4
      Top = 4
      Width = 145
      Height = 45
      Caption = '&Imprimir Nota'
      TabOrder = 0
      OnClick = btnImprimirClick
      Glyph.Data = {
        360C0000424D360C000000000000360000002800000020000000200000000100
        180000000000000C000000000000000000000000000000000000C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6000000000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C60000000000
        00000000FFFFFF000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6000000000000000000000000000000FFFF
        FFFFFFFFFFFFFF000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6000000000000000000000000000000FFFFFFFFFFFFFFFFFFFFFF
        FFFF0000FFFFFF000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFF0000FF0000FF00
        00FFFFFFFFFFFF000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        000000000000FFFFFFFFFFFFFFFFFFFF0000FF0000FF0000FFFFFFFFFFFFFFFF
        FFFFFFFFFFFFFF000000000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        000000000000FFFFFFFF0000FF0000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
        FFFFFFFFFFFFFF000000000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000FF00
        00FF0000FFFFFFFFFFFF000000000000C6C6C6C6C6C6C6C6C6C6C6C600000000
        0000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6000000FFFFFFFFFFFFFFFFFFFFFFFFFF0000FF0000FF0000FFFFFFFFFF
        FFFFFFFFFFFFFFFFFFFF000000000000C6C6C6C6C6C60000000000007B7B7B7B
        7B7B7B7B7BC6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6000000000000FFFFFFFF0000FF0000FFFFFFFFFFFFFFFFFFFFFFFFFFFF
        FFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000000BDBDBDBDBDBD7B
        7B7B7B7B7BC6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00
        00FF0000FF0000FFFFFFFFFFFFFFFFFF000000000000BDBDBDBDBDBDBDBDBD7B
        7B7B7B7B7B000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6000000FFFFFFFFFFFFFFFFFFFFFFFFFF0000FF0000FF0000FFFF
        FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000BDBDBD7B
        7B7B7B7B7B7B7B7B000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6000000000000FFFFFFFF0000FF0000FFFFFFFFFFFFFFFFFFFFFF
        FFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000000BDBDBDBDBDBD7B
        7B7B7B7B7B7B7B7B000000000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
        FF000000000000000000000000000000000000000000BDBDBDBDBDBDBDBDBD7B
        7B7B7B7B7B7B7B7B7B7B7B000000000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6000000000000000000000000FFFFFFFFFFFFFFFFFF0000000000000000
        00000000000000000000BDBDBDBDBDBDBDBDBDBDBDBDBDBDBDBDBDBD7B7B7B7B
        7B7B7B7B7B7B7B7B7B7B7B7B7B7B000000000000C6C6C6C6C6C6C6C6C6C6C6C6
        000000A59C9CA59C9CA59C9C0000000000000000000000000000000000000000
        00BDBDBDBDBDBDBDBDBDBDBDBDBDBDBDBDBDBDBDBDBDBDBDBDA59C9CA59C9C7B
        7B7B7B7B7B7B7B7B7B7B7B7B7B7B7B7B7B000000C6C6C6C6C6C6C6C6C6C6C6C6
        000000A59C9CA59C9C000000000000000000000000BDBDBDBDBDBDBDBDBDBDBD
        BDBDBDBDBDBDBDBDBDBDBDBDBDBDBDBDA59C9CA59C9CA59C9CA59C9CA59C9CA5
        9C9C7B7B7B7B7B7B7B7B7B7B7B7B7B7B7B000000C6C6C6C6C6C6C6C6C6C6C6C6
        000000A59C9CBDBDBDBDBDBDBDBDBDBDBDBDBDBDBDBDBDBDBDBDBDBDBDBDBDBD
        BDBDBDBDA59C9CA59C9CA59C9CA59C9CA59C9CA59C9CA59C9CA59C9CA59C9CA5
        9C9CA59C9C7B7B7B7B7B7B7B7B7B7B7B7B000000C6C6C6C6C6C6C6C6C6C6C6C6
        000000A59C9CBDBDBDBDBDBDBDBDBDBDBDBDBDBDBDBDBDBDA59C9CA59C9CA59C
        9CA59C9CA59C9CA59C9CA59C9CA59C9CA59C9CA59C9CA59C9CA59C9CA59C9CA5
        9C9CA59C9CA59C9C7B7B7B7B7B7B7B7B7B000000C6C6C6C6C6C6C6C6C6C6C6C6
        000000A59C9CBDBDBDBDBDBDBDBDBDA59C9CA59C9CA59C9CA59C9CA59C9CA59C
        9CA59C9CA59C9CA59C9CA59C9CA59C9CA59C9CA59C9CA59C9CA59C9CA59C9CA5
        9C9CA59C9CA59C9CA59C9C7B7B7B7B7B7B000000000000C6C6C6C6C6C6C6C6C6
        000000A59C9CA59C9CA59C9CA59C9CA59C9CA59C9CA59C9CA59C9CA59C9CA59C
        9CA59C9CA59C9C00FF00000000A59C9CA59C9CA59C9CA59C9CA59C9CA59C9CA5
        9C9CA59C9C000000000000000000000000000000000000C6C6C6C6C6C6C6C6C6
        000000000000000000000000A59C9CA59C9CA59C9CA59C9CA59C9C0000FF0000
        FF7B7B7B00FF0000FF00000000A59C9CA59C9CA59C9CA59C9C00000000000000
        00000000000000000000000000007B7B7B7B7B7B000000C6C6C6C6C6C6C6C6C6
        C6C6C6000000000000000000000000000000A59C9CA59C9CA59C9CA59C9C0000
        FF7B7B7BA59C9CA59C9CA59C9CA59C9C00000000000000000000000000000000
        0000FFFFFFFFFFFFFFFFFF000000000000000000C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6000000000000000000000000000000000000A59C
        9CA59C9CA59C9CA59C9C000000000000000000000000FFFFFFFFFFFFFFFFFFFF
        FFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C60000000000000000
        00000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
        FFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
        FFFFFFFFFFBDBDBDFFFFFFBDBDBD000000000000C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFBDBDBDFF
        FFFFBDBDBDFFFFFFBDBDBDBDBDBD000000000000C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6000000FFFFFFFFFFFFBDBDBDFFFFFFBDBDBDBDBDBDBD
        BDBDBDBDBDBDBDBD7B7B7B7B7B7B000000000000C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6000000BDBDBDBDBDBDBDBDBDBDBDBDBDBDBD7B7B7B7B
        7B7B7B7B7B7B7B7B7B7B7B000000000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C60000000000000000000000007B7B7B7B7B7B00000000000000
        0000000000000000000000000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6000000000000000000000000000000000000000000000000C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6000000000000000000000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6}
    end
    object BtnSair: TBitBtn
      Left = 150
      Top = 4
      Width = 145
      Height = 45
      Cancel = True
      Caption = '&Sair'
      ModalResult = 2
      TabOrder = 1
      Glyph.Data = {
        360C0000424D360C000000000000360000002800000020000000200000000100
        180000000000000C000000000000000000000000000000000000C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6000000000000000000000000000000000000C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6000000000000C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6000000000000000000000000000000000000C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C60000000000FF000000C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6000000000000000000C6C6C6C6C6
        C6C6C6C6C6C6C60000000000FF0000FF000000000000C6C6C6C6C6C6C6C6C600
        0000000000000000000000000000000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6000000000000000000000000C6C6
        C6C6C6C6C6C6C60000000000FF0000FF000000000000C6C6C6C6C6C6C6C6C600
        0000000000000000000000000000000000000000C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6000000000000000000C6C6
        C6C6C6C6C6C6C60000000000FF0000FF000000000084000000000000C6C6C6C6
        C6C6000000000000000000000000000000000000000000C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6000000000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C60000000000FF0000FF0000004284FF000084000000C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6000000000000000000C6C6C6C6C6C6
        C6C6C6000000000000000000000000000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C60000000000FF0000FF0000000000FF4284FF000084000000C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6000000000000C6C6C6C6C6C6
        000000000084000000002108000084001808000000000000000000C6C6C6C6C6
        C6C6C6C6C6C6C60000000000FF0000840000000000FF0000FF00008400180800
        0000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6000000
        0000840000FF0000000000FF4284FF4284FF4284FF0000840018080000000000
        000000000000000000000000840000000000000000FF0000FF4284FF00008400
        0000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6000000
        0000FF0000FF0000000000FF0000FF0000FF0000FF4284FF0000840000840000
        840000840000840000000000000000000000000000FF0000FF0000FF4284FF00
        2108000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6000000C6C6C6C6C6C6000000
        0000FF0000FF0000000000FF0000FF0000FF0000FF0000FF0000FF0000FF0000
        FF0000FF4284FF0000000000000000000000000000FF0000FF0000FF0000FF00
        0084000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6000000C6C6C6C6C6C6000000
        0000FF0000FF0000000000FF0000FF0000FF0000FF0000FF0000FF0000FF0000
        FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF00
        00FF000084000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6000000
        0000FF0000FF0000000000FF0000FF0000FF0000FF0000FF0000FF0000FF0000
        FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF00
        00FF0000FF000084000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6000000
        0000FF0000FF0000000000FF0000FF0000FF0000FF0000FF0000FF0000FF0000
        FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF00
        00FF0000FF0000FF000084000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6000000
        0000FF0000FF0000000000FF0000FF0000FF0000FF0000FF0000FF0000FF0000
        FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF00
        00FF0000FF0000FF000084000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6000000
        0000FF0000FF0000000000FF0000FF0000FF0000FF0000FF0000FF0000FF0000
        FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF00
        00FF0000FF0000FF000084000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6000000
        0000FF0000FF0000000000FF0000FF0000FF0000FF0000FF0000FF0000FF0000
        FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF00
        00FF0000FF000084000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6000000
        0000FF0000FF0000000000FF0000FF0000FF0000FF0000FF0000FF4284FFFFFF
        FF0000FFFFFFFFFFFFFFFFFFFF0000FF0000FF0000FF0000FF0000FF0000FF42
        84FF7B7B7B000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6000000
        0000FF0000FF0000000000FF0000FF0000FF4284FF4284FF4284FF4284FF4284
        FF0000FF4284FF7B7B7B7B7B7B0000840000840000FF0000FF0000FF4284FF42
        84FF393939000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6000000
        0000FF0000FF0000000000FF0000FF0000FF4284FF4284FF4284FF0000840000
        840000840000840000000000000000000000000000FF0000FF4284FF4284FF00
        0084000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6000000
        0000840000FF0000000000FF0000FF0000FF0000840000840018080000000000
        000000000000000000000039100000000000000000FF0000FF4284FF00008400
        0000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        000000000084000000002108000084001808000000000000000000C6C6C6C6C6
        C6C6C6C6C6C6C60000000000FF0000840000004284FF4284FF00008400180800
        0000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6000000000000000000000000000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C60000000000FF0000FF000000FFFFFF7B7B7B393939000000C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6000000C6C6C6
        C6C6C6C6C6C6000000000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C60000000000FF0000FF0000004284FF000000000000C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6000000000000
        C6C6C6C6C6C6000000000000000000C6C6C6C6C6C6000000000000000000C6C6
        C6C6C6C6C6C6C60000000000FF0000FF000000000084000000000000C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6000000000000
        C6C6C6C6C6C6000000000000000000C6C6C6C6C6C6000000000000000000C6C6
        C6C6C6C6C6C6C60000000000FF0000FF000000000000C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6000000
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6000000000000000000000000C6C6C6C6C6
        C6C6C6C6C6C6C60000000000FF0000FF000000000000C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6000000000000000000000000C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C60000000000FF000000C6C6C6C6C6C6C6C6C6C6C6C600
        0000000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6000000000000C6C6C6C6C6C6C6C6C600000000
        0000000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6
        C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6}
    end
  end
  object gbxNota: TGroupBox
    Left = 0
    Top = 0
    Width = 679
    Height = 65
    Align = alTop
    Caption = 'Nota Fiscal'
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clWindowText
    Font.Height = -11
    Font.Name = 'MS Sans Serif'
    Font.Style = []
    ParentFont = False
    TabOrder = 2
    object Label6: TLabel
      Left = 8
      Top = 16
      Width = 81
      Height = 13
      Caption = 'N'#250'mero da Nota:'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = []
      ParentFont = False
    end
    object Label21: TLabel
      Left = 96
      Top = 16
      Width = 80
      Height = 13
      Caption = 'Data de Emiss'#227'o'
    end
    object Label22: TLabel
      Left = 184
      Top = 16
      Width = 118
      Height = 13
      Caption = 'Data de Entrada / Sa'#237'da'
    end
    object Label23: TLabel
      Left = 312
      Top = 16
      Width = 26
      Height = 13
      Caption = 'Hora:'
    end
    object Label25: TLabel
      Left = 416
      Top = 19
      Width = 31
      Height = 13
      Caption = 'CFOP:'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = []
      ParentFont = False
    end
    object edtnotaAtual: TEdit
      Left = 8
      Top = 35
      Width = 81
      Height = 21
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = []
      MaxLength = 10
      ParentFont = False
      TabOrder = 0
    end
    object EdtDataEmissao: TEdit
      Left = 96
      Top = 35
      Width = 81
      Height = 21
      TabOrder = 1
      OnExit = EdtDataEmissaoExit
    end
    object EdtDataEntradaSaida: TEdit
      Left = 184
      Top = 35
      Width = 121
      Height = 21
      TabOrder = 2
      OnExit = EdtDataEmissaoExit
    end
    object EdtHoraEntradaSaida: TEdit
      Left = 312
      Top = 35
      Width = 97
      Height = 21
      TabOrder = 3
      OnExit = EdtHoraEntradaSaidaExit
    end
    object StaticText1: TStaticText
      Left = 488
      Top = 35
      Width = 193
      Height = 21
      AutoSize = False
      BorderStyle = sbsSingle
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = []
      ParentFont = False
      TabOrder = 4
    end
    object btnCFOP: TBitBtn
      Left = 465
      Top = 35
      Width = 21
      Height = 21
      Caption = '...'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = []
      ParentFont = False
      TabOrder = 5
      TabStop = False
    end
    object edtCFOP: TEdit
      Left = 416
      Top = 35
      Width = 49
      Height = 21
      TabOrder = 6
    end
  end
  object sql_notafiscal: TSQLClientDataSet
    CommandText = 
      'SELECT DISTINCT SD.SAD_CODCFO COD_CFOP, SD.SAD_DATAVE DATA_EMISS' +
      'AO,       '#13#10'CURRENT_DATE DATA_ENTRADA_SAIDA,       '#13#10'ES.ESP_CODI' +
      'GO PRODUTO_CODIGO, ES.ESP_DESCRI PRODUTO_DESCRICAO,       '#13#10'ES.E' +
      'SP_UNIDAD PRODUTO_UNIDADE, SP.SAI_QUANTI PRODUTO_QUANTIDADE,    ' +
      '   '#13#10'SP.SAI_PREVEN PRODUTO_PRECO_UNITARIO, EE.ESE_SITCOD SITUACA' +
      'O_TRIBUTARIA,       '#13#10'SP.SAI_SEQITEM SEQUENCIA_ITEM,       '#13#10'SI.' +
      'SIT_ALQICM ALIQUOTA_ICMS, EE.ESE_IPICOD COD_IPI, II.IPI_ALQIPI A' +
      'LIQUOTA_IPI,       '#13#10'CF.CFO_DESCRI NATUREZA_OPERCACAO, PE.PES_NO' +
      'ME NOME, PE.PES_CPFCNPJ CNPJ,       '#13#10'PE.PES_ENDERECO ENDERECO, ' +
      'PE.PES_BAIRRO BAIRRO, PE.PES_POSTAL CEP,       '#13#10'CI.CID_DESCRI M' +
      'UNICIPIO, PE.PES_FONE TELEFONE, PE.PES_ESTADO ESTADO,       '#13#10'PE' +
      '.PES_IDEINS INSCRICAO_ESTADUAL, ES.ESP_IDFCOD COD_PROD '#13#10'FROM SA' +
      'IDA_DOCUMENTO SD '#13#10'INNER JOIN SAIDA_ITEM SP ON SP.SAI_IDFDOC = S' +
      'D.SAD_IDFDOC '#13#10'INNER JOIN ESTOQUE_PRODUTO ES ON ES.ESP_IDFCOD = ' +
      'SP.SAI_IDFITEM '#13#10'INNER JOIN ESTOQUE_EMPRESA EE ON EE.ESE_IDFCOD ' +
      '= ES.ESP_IDFCOD '#13#10'    AND EE.ESE_EMPCOD = SD.SAD_IDFEMPRESA '#13#10'IN' +
      'NER JOIN SITUACAO SI ON SI.SIT_CODIGO = EE.ESE_SITCOD '#13#10'INNER JO' +
      'IN IPI II ON II.IPI_CODIGO = EE.ESE_IPICOD '#13#10'INNER JOIN CFOP CF ' +
      'ON CF.CFO_CODIGO = SD.SAD_CODCFO '#13#10'INNER JOIN PESSOAS PE ON PE.P' +
      'ES_IDFCOD = SD.SAD_CODCLI '#13#10'INNER JOIN CIDADES CI on CI.CID_CODI' +
      'GO = PE.PES_CIDADE   '#13#10'    AND CI.CID_ESTCOD = PE.PES_ESTADO '#13#10'W' +
      'HERE SP.SAI_CANCEL = '#39'N'#39' '#13#10'      AND SD.SAD_CANCELADO = '#39'N'#39'   '#13#10 +
      '      AND SD.SAD_IDFDOC = 0'#13#10'ORDER BY  SD.SAD_IDFDOC, SP.SAI_SEQ' +
      'ITEM'
    Aggregates = <>
    Options = [poAllowCommandText]
    ObjectView = True
    Params = <>
    DBConnection = DtmGeral.ConexaoBanco
    Left = 544
    Top = 16
  end
  object PrintDialog1: TPrintDialog
    Left = 624
    Top = 16
  end
  object ZQuerySaida: TZQuery
    Connection = DtmGeral.ZConexaoBanco
    SQL.Strings = (
      
        'SELECT DISTINCT SD.SAD_CODCFO COD_CFOP, SD.SAD_DATAVE DATA_EMISS' +
        'AO,'
      'CURRENT_DATE DATA_ENTRADA_SAIDA, DSI.COD_REF, DSI.DESCRICAO,'
      'DSI.UNIDADE , DSI.QUANTIDADE, DSI.PRECO_VENDA PRECO_UNITARIO,'
      
        'DSI.SITTRIB_ICMS , DSI.ITEM, DSI.ALIQUOTA_ICMS, DSI.COD_IPI, DSI' +
        '.ALIQUOTA_IPI,'
      
        'CF.CFO_DESCRI NATUREZA_OPERCACAO, PE.PES_NOME NOME, PE.PES_CPFCN' +
        'PJ CNPJ,'
      
        'PE.PES_ENDERECO ENDERECO, PE.PES_BAIRRO BAIRRO, PE.PES_POSTAL CE' +
        'P,'
      
        ' CI.CID_DESCRI MUNICIPIO, PE.PES_FONE TELEFONE, PE.PES_ESTADO ES' +
        'TADO, '
      ' PE.PES_IDEINS INSCRICAO_ESTADUAL, DSI.CODIGO, DSI.PROSER '
      'FROM SAIDA_DOCUMENTO SD INNER JOIN DOCUMENTO_SAIDA_ITENS DSI '
      ' ON DSI.DOCUMENTO = SD.SAD_IDFDOC '
      'INNER JOIN CFOP CF ON CF.CFO_CODIGO = SD.SAD_CODCFO '
      'INNER JOIN PESSOAS PE ON PE.PES_IDFCOD = SD.SAD_CODCLI '
      'INNER JOIN CIDADES CI on CI.CID_CODIGO = PE.PES_CIDADE '
      'AND CI.CID_ESTCOD = PE.PES_ESTADO '
      ' WHERE DSI.CANCELADO = '#39'N'#39' AND SD.SAD_CANCELADO = '#39'N'#39' AND'
      ' SD.SAD_IDFDOC = :doc'
      'ORDER BY SD.SAD_IDFDOC, DSI.ITEM')
    Params = <
      item
        DataType = ftInteger
        Name = 'doc'
        ParamType = ptUnknown
        Value = 0
      end>
    Left = 393
    Top = 362
    ParamData = <
      item
        DataType = ftInteger
        Name = 'doc'
        ParamType = ptUnknown
        Value = 0
      end>
    object ZQuerySaidaCOD_CFOP: TStringField
      FieldName = 'COD_CFOP'
      Size = 8
    end
    object ZQuerySaidaDATA_EMISSAO: TDateField
      FieldName = 'DATA_EMISSAO'
      Required = True
    end
    object ZQuerySaidaDATA_ENTRADA_SAIDA: TDateField
      FieldName = 'DATA_ENTRADA_SAIDA'
      ReadOnly = True
    end
    object ZQuerySaidaCOD_REF: TStringField
      FieldName = 'COD_REF'
      Size = 13
    end
    object ZQuerySaidaDESCRICAO: TStringField
      FieldName = 'DESCRICAO'
      Size = 60
    end
    object ZQuerySaidaUNIDADE: TStringField
      FieldName = 'UNIDADE'
      Size = 2
    end
    object ZQuerySaidaQUANTIDADE: TFloatField
      FieldName = 'QUANTIDADE'
    end
    object ZQuerySaidaPRECO_UNITARIO: TFloatField
      FieldName = 'PRECO_UNITARIO'
    end
    object ZQuerySaidaSITTRIB_ICMS: TStringField
      FieldName = 'SITTRIB_ICMS'
      Size = 2
    end
    object ZQuerySaidaITEM: TSmallintField
      FieldName = 'ITEM'
    end
    object ZQuerySaidaALIQUOTA_ICMS: TFloatField
      FieldName = 'ALIQUOTA_ICMS'
    end
    object ZQuerySaidaCOD_IPI: TStringField
      FieldName = 'COD_IPI'
      Size = 2
    end
    object ZQuerySaidaALIQUOTA_IPI: TFloatField
      FieldName = 'ALIQUOTA_IPI'
    end
    object ZQuerySaidaNATUREZA_OPERCACAO: TStringField
      FieldName = 'NATUREZA_OPERCACAO'
      Required = True
      Size = 30
    end
    object ZQuerySaidaNOME: TStringField
      FieldName = 'NOME'
      Required = True
      Size = 60
    end
    object ZQuerySaidaCNPJ: TStringField
      FieldName = 'CNPJ'
      Size = 18
    end
    object ZQuerySaidaENDERECO: TStringField
      FieldName = 'ENDERECO'
      Size = 60
    end
    object ZQuerySaidaBAIRRO: TStringField
      FieldName = 'BAIRRO'
      Size = 40
    end
    object ZQuerySaidaCEP: TStringField
      FieldName = 'CEP'
      Size = 10
    end
    object ZQuerySaidaMUNICIPIO: TStringField
      FieldName = 'MUNICIPIO'
      Required = True
      Size = 40
    end
    object ZQuerySaidaTELEFONE: TStringField
      FieldName = 'TELEFONE'
      Size = 30
    end
    object ZQuerySaidaESTADO: TStringField
      FieldName = 'ESTADO'
      Required = True
      Size = 2
    end
    object ZQuerySaidaINSCRICAO_ESTADUAL: TStringField
      FieldName = 'INSCRICAO_ESTADUAL'
    end
    object ZQuerySaidaCODIGO: TIntegerField
      FieldName = 'CODIGO'
    end
    object ZQuerySaidaPROSER: TStringField
      FieldName = 'PROSER'
      Size = 7
    end
  end
  object ZQueryEntrada: TZQuery
    Connection = DtmGeral.ZConexaoBanco
    SQL.Strings = (
      
        'SELECT DISTINCT ED.END_CFOPCODIGO COD_CFOP, ED.END_DATAEMISSAO D' +
        'ATA_EMISSAO,'
      
        '         CURRENT_DATE DATA_ENTRADA_SAIDA, DEI.COD_REF, DEI.DESCR' +
        'ICAO,'
      
        '         DEI.UNIDADE , DEI.QUANTIDADE, DEI.PRECO_VENDA PRECO_UNI' +
        'TARIO,'
      
        '         DEI.SITTRIB_ICMS , DEI.ITEM, DEI.ALIQUOTA_ICMS, DEI.COD' +
        '_IPI, '
      '         DEI.ALIQUOTA_IPI,'
      
        '         CF.CFO_DESCRI NATUREZA_OPERCACAO, PE.PES_NOME NOME, PE.' +
        'PES_CPFCNPJ CNPJ,'
      
        '         PE.PES_ENDERECO ENDERECO, PE.PES_BAIRRO BAIRRO, PE.PES_' +
        'POSTAL CEP,'
      
        '         CI.CID_DESCRI MUNICIPIO, PE.PES_FONE TELEFONE, PE.PES_E' +
        'STADO ESTADO,'
      
        '         PE.PES_IDEINS INSCRICAO_ESTADUAL, DEI.CODIGO, DEI.PROSE' +
        'R '
      
        '         FROM ENTRADA_DOCUMENTO ED INNER JOIN DOCUMENTO_ENTRADA_' +
        'ITENS DEI'
      '         ON DEI.DOCUMENTO = ED.END_IDFDOCUMENTO'
      '         INNER JOIN CFOP CF ON CF.CFO_CODIGO = ED.END_CFOPCODIGO'
      
        '         INNER JOIN PESSOAS PE ON PE.PES_IDFCOD = ED.END_PESSOAI' +
        'DF'
      '         INNER JOIN CIDADES CI on CI.CID_CODIGO = PE.PES_CIDADE'
      '          AND CI.CID_ESTCOD = PE.PES_ESTADO'
      '         WHERE DEI.CANCELADO = '#39'N'#39' AND ED.END_CANCELADO = '#39'N'#39
      '         AND ED.END_IDFDOCUMENTO = :doc'
      '         ORDER BY ED.END_IDFDOCUMENTO, DEI.ITEM;')
    Params = <
      item
        DataType = ftUnknown
        Name = 'doc'
        ParamType = ptUnknown
      end>
    Left = 473
    Top = 362
    ParamData = <
      item
        DataType = ftUnknown
        Name = 'doc'
        ParamType = ptUnknown
      end>
    object ZQueryEntradaCOD_CFOP: TStringField
      FieldName = 'COD_CFOP'
      Required = True
      Size = 8
    end
    object ZQueryEntradaDATA_EMISSAO: TDateField
      FieldName = 'DATA_EMISSAO'
      Required = True
    end
    object ZQueryEntradaDATA_ENTRADA_SAIDA: TDateField
      FieldName = 'DATA_ENTRADA_SAIDA'
      ReadOnly = True
    end
    object ZQueryEntradaCOD_REF: TStringField
      FieldName = 'COD_REF'
    end
    object ZQueryEntradaDESCRICAO: TStringField
      FieldName = 'DESCRICAO'
      Size = 60
    end
    object ZQueryEntradaUNIDADE: TStringField
      FieldName = 'UNIDADE'
      Size = 2
    end
    object ZQueryEntradaQUANTIDADE: TFloatField
      FieldName = 'QUANTIDADE'
    end
    object ZQueryEntradaPRECO_UNITARIO: TFloatField
      FieldName = 'PRECO_UNITARIO'
    end
    object ZQueryEntradaSITTRIB_ICMS: TStringField
      FieldName = 'SITTRIB_ICMS'
      Size = 2
    end
    object ZQueryEntradaITEM: TSmallintField
      FieldName = 'ITEM'
    end
    object ZQueryEntradaALIQUOTA_ICMS: TFloatField
      FieldName = 'ALIQUOTA_ICMS'
    end
    object ZQueryEntradaCOD_IPI: TStringField
      FieldName = 'COD_IPI'
      Size = 2
    end
    object ZQueryEntradaALIQUOTA_IPI: TFloatField
      FieldName = 'ALIQUOTA_IPI'
    end
    object ZQueryEntradaNATUREZA_OPERCACAO: TStringField
      FieldName = 'NATUREZA_OPERCACAO'
      Required = True
      Size = 30
    end
    object ZQueryEntradaNOME: TStringField
      FieldName = 'NOME'
      Required = True
      Size = 60
    end
    object ZQueryEntradaCNPJ: TStringField
      FieldName = 'CNPJ'
      Size = 18
    end
    object ZQueryEntradaENDERECO: TStringField
      FieldName = 'ENDERECO'
      Size = 60
    end
    object ZQueryEntradaBAIRRO: TStringField
      FieldName = 'BAIRRO'
      Size = 40
    end
    object ZQueryEntradaCEP: TStringField
      FieldName = 'CEP'
      Size = 10
    end
    object ZQueryEntradaMUNICIPIO: TStringField
      FieldName = 'MUNICIPIO'
      Required = True
      Size = 40
    end
    object ZQueryEntradaTELEFONE: TStringField
      FieldName = 'TELEFONE'
      Size = 30
    end
    object ZQueryEntradaESTADO: TStringField
      FieldName = 'ESTADO'
      Required = True
      Size = 2
    end
    object ZQueryEntradaINSCRICAO_ESTADUAL: TStringField
      FieldName = 'INSCRICAO_ESTADUAL'
    end
    object ZQueryEntradaCODIGO: TIntegerField
      FieldName = 'CODIGO'
    end
    object ZQueryEntradaPROSER: TStringField
      FieldName = 'PROSER'
      Size = 7
    end
  end
end
